<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item block relative">
            <span class="help-label"><b>奖品名称</b></span>
            <input class="layui-input" name="title" placeholder="请输入奖品名称" required value="{$vo.title|default=''}">
        </label>

        <label class="layui-form-item block relative">
            <span class="help-label"><b>奖励的金币</b></span>
            <input class="layui-input" name="money" placeholder="请输入奖励金币" required value="{$vo.money|default=''}">
        </label>

        <label class="layui-form-item block relative">
            <span class="help-label"><b>概率</b></span>
            <input class="layui-input" name="probability" placeholder="请输入概率" required value="{$vo.probability|default=''}">
        </label>

        <div>
            <span class="help-label"><b>转盘类型</b></span>
            <div>
                <input type="radio" name="type"   value="0" title="转盘一" {if isset($vo.type) && $vo.type == 0}checked{/if}>
                <input type="radio" name="type"   value="1" title="转盘二"  {if isset($vo.type) && $vo.type == 1}checked{/if}>
            </div>
        </div>

        <div>
            <span class="help-label"><b>状态</b></span>
            <div>
                {if isset($vo.status ) and $vo.status == 1}
                <input type="radio" name="status" value="1" title="上架" checked>
                {else}
                <input type="radio" name="status" value="1" title="上架" >
                {/if}

                {if isset($vo.status)}
                <input type="radio" name="status" value="0" title="下架" {if $vo.status == 0} checked{/if}>
                {else}
                <input type="radio" name="status" value="0" title="下架" checked>
                {/if}

            </div>
        </div>


    </div>

    <div class="hr-line-dashed"></div>

    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>




<style>

</style>